/**
 * Created by zhangjunjie on 2016/12/2.
 */
var express = require("express");

var app = express();
console.log(__dirname);
app.use(express.static("public"));
app.use(express.static("data"));
app.use(express.static("views"));
app.get("/",function(req,res){
    console.log(req.route);
    res.sendFile(__dirname+"/views/zworld-home.html");
});
app.get("/cityWalk",function(req,res){
    res.set("Content-Type","text/html");
    res.sendFile(__dirname+"/views/zworld-cityWalk.html")
})

app.get("/zworld-footer",function(req,res){
    res.set("Content-Type","text/html");
    //res.send("这是HOme页");
    //__dirname 得到当前脚本的路径
    res.sendFile(__dirname+"/views/zworld-footer.html");
});
var server = app.listen(8080,function(){
    console.log("服务启动");
});